-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added sonarQube for code quality #42
base: master
Are you sure you want to change the base?
feat: added sonarQube for code quality #42
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the super fast PR @nasiruddinml san! 🎉
I have some comments, please take a look.
Also I think it's better not to have sonarqube in dev compose file as we may not want to run it everytime during development, I think we can have a discussion about this later in the meeting.
@@ -44,6 +44,32 @@ services: | |||
depends_on: | |||
- mysqldb | |||
|
|||
sonarqube: | |||
container_name: sonarqube |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A docker-compose generated container name would be more preferable in my opinion than a fixed name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was set by mean to link with sonarscanner
. Now, we can expose one more port for TCP connection. And omit this container_name.
- sonarqube_temp:/opt/sonarqube/temp | ||
ports: | ||
- 9000:9000 | ||
sonarscanner: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we pass the sonar.properties
to sonarqube container itself in volume /opt/sonarqube/conf
rather than another container?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically, sonar.properties
most use case when we scan our code. Which handle by sonarscanner
. So, I thought that users can change properties and make an easy scan.
feat: added sonarQube docker setup for code quality